﻿using System;

namespace _3_Sieve
{
    class Program
    {
        static void Main(string[] args)
        {
            bool[] isPrime = new bool[101];
            for (int i = 2; i <= 100; i++) isPrime[i] = true;
            for (int i = 2; i <= 100; i++)
            {
                if (isPrime[i]) Console.Write("{0} ", i);
                else continue;
                for (int j = i; j <= 100; j += i) isPrime[j] = false;
            }
        }
    }
}
